<h1><?php echo $this->escape($this->title); ?></h1><br/>
<form method="post" action="<?php echo $this->moduleUrl ?>/new1">
<table cellpadding=5 border=2 class="table1">
<tr>
	<th>Field Name</th>
	<th>Field Type</th>
	<th>Length</th>
	<th>Primary Key</th>
	<th>Select</th>
</tr>
<?php foreach($this->objects as $object) : ?>
<tr>
<td><?php echo $object['COLUMN_NAME'];?></td>
<td><?php echo $object['DATA_TYPE'];?></td>
<td><?php echo $object['LENGTH'];?></td>
<td><?php echo $object['PRIMARY'];?></td>
<td><?php if($object['IDENTITY'] == 1) { ?>
identity
<?php
}else { 
?>
<input type="checkbox" name="<?php echo $object['COLUMN_NAME'];?>"></td>
<?php } ?>
</tr>
<?php endforeach; ?>
</table>
</form>
<?php
/*

<div class="item entry" id="main-1">
<div class="itemhead">
<h3>Add New HTML Page</h3>
</div>
<div class="storycontent">
<form name="f1" id="mainform" action="<?php echo $this->baseUrl ?>/html/new" method="post">
<div>
<label for="html_title">Title</label><br />
<input type="text" name="html_title" size="60"
value="<?php echo $this->escape($this->form->html_title->getvalue("Page Title Here"));?>" />
</div>
<div>
<label for="url_title">Url Title</label><br />
<input type="text" name="url_title"  size="60"
value="<?php echo $this->escape($this->form->url_title->getvalue("Url Title Here"));?>" />
</div>
<div>
    <label for="html">HTML</label><br />
	<textarea name="html" id="html" cols="150" rows="10">
<?php echo $this->escape($this->form->html->getvalue("Test Data Here"));?>
	</textarea>
</div>
<div id="formbutton">
<input type="submit" name="addButton" value="Add"/><input type="reset" name="reset" value="Clear Form" />
</div>
</form>
</div></div>
<script  type="text/javascript">
var myEditor1 = new YAHOO.widget.Editor('html', {
    height: '300px',
    width: '550px',
    animate: true
});
myEditor1.render();

YAHOO.util.Event.on('mainform', 'submit', function(ev) {
	YAHOO.util.Event.stopEvent(ev);
	myEditor1.saveHTML(); //Save the HTML
	var e_data1 = myEditor1.get('textarea').value;
	myEditor1.get('textarea').value = e_data1;
	YAHOO.util.Dom.get('mainform').submit();
});
</script>
*/